package com.volunteer.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 服务需求实体类
 */
@Data
@TableName("service_demand")
public class ServiceDemand implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String description;

    private String demanderName;

    private String contactPhone;

    private String address;

    private String requiredSkills;

    private LocalDateTime expectedTime;

    private String status;  // PENDING, ASSIGNED, IN_PROGRESS, COMPLETED, CANCELLED

    private Integer pointsReward;

    private Long publisherId;

    private Long assigneeId;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}

